package com.niren.relay.entity;

import java.util.Date;

/**
 * 一个设备由
 * */
public class SysDeviceManage {
    /**
     * Id即设备Id
     * */
    Integer id = 0;
    /**
     * 设备mac
     * */
    String devMac = "";
    /**
     * 设备名
     * */
    String devName = "";
    /**
     * 节点名
     * 初始值由设备名+参数类型(out或in)+通道号生成
     * */
    String nodeName = "";
    /**
     * 节点通道号
     * */
    Integer nodeCh = 1;
    /**
     * 节点类型
     * 0为输出节点
     * 1为输入节点
     * */
    Integer nodeType = 0;
    /**
     * 实时值
     * */
    Integer rtValue = 0;
    /**
     * 在线标志
     * */
    Integer isOnline=0;
    /**
     * 最后在线日期
     * */
    Date onlineDate = new Date();

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getDevMac() {
        return devMac;
    }

    public void setDevMac(String devMac) {
        this.devMac = devMac;
    }

    public String getDevName() {
        return devName;
    }

    public void setDevName(String devName) {
        this.devName = devName;
    }

    public String getNodeName() {
        return nodeName;
    }

    public void setNodeName(String nodeName) {
        this.nodeName = nodeName;
    }

    public Integer getNodeCh() {
        return nodeCh;
    }

    public void setNodeCh(Integer nodeCh) {
        this.nodeCh = nodeCh;
    }

    public Integer getNodeType() {
        return nodeType;
    }

    public void setNodeType(Integer nodeType) {
        this.nodeType = nodeType;
    }

    public Integer getRtValue() {
        return rtValue;
    }

    public void setRtValue(Integer rtValue) {
        this.rtValue = rtValue;
    }

    public Integer getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(Integer isOnline) {
        this.isOnline = isOnline;
    }

    public Date getOnlineDate() {
        return onlineDate;
    }

    public void setOnlineDate(Date onlineDate) {
        this.onlineDate = onlineDate;
    }

}
